<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>文件上传</h1>

<form th:action="@{/filecommit}" method="post" enctype="multipart/form-data">
   <div> 文件：<input type="file" name="file"></div>
    <input type="submit" value="上传文件">
</form>

</body>
</html>